package com.secret.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * TODO
 *
 * @author Secret
 * @version 0.0.1
 * @date 2019-01-21 下午6:14
 */
@Controller
public class HelloController {

    private final static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("hello")
    public String hello(String name) {
        logger.info("name: {}", name);
        logger.debug("hello ----------");
        return "index";
    }

}
